import { createApp } from 'vue'
import App from './App.vue'
import router from './router/index'
import { PacvueElement } from '@pacvue/element-plus'
import '@pacvue/element-plus/dist/style.css'

import SvgComponent from '@pacvue/svg-icon'
const AppInstance = createApp(App)
for (const [key, component] of Object.entries(SvgComponent)) {
  AppInstance.component(key, component)
  // console.log(key, component)
}

AppInstance.use(router)
  .use(PacvueElement)
  .mount('#app')
